package com.alex.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book {

    private String isbn;
    private String bookName;
    private Integer stock;
    private Integer price;

    public Book(String bookName, Integer price) {
        this.bookName = bookName;
        this.price = price;
    }

    public Book(String bookName, Integer stock, Integer price) {
        this.bookName = bookName;
        this.stock = stock;
        this.price = price;
    }
}
